//
//  ExpertCommentCell.m
//  Toyohu
//
//  Created by Heige on 16/5/3.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "ExpertCommentCell.h"
#import <UIImageView+WebCache.h>
#import "ExpertDetailsExpertAppraise.h"
#import "ExpertDetailsExpert.h"
@implementation ExpertCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(ExpertDetailsExpertAppraise *)model
{
//    model.expert
//    _model = model;
    [_img sd_setImageWithURL:[NSURL URLWithString:model.expert.eHeadUrl]];
    _img.layer.cornerRadius = _img.frame.size.height/2;
    _img.clipsToBounds = YES;
    _name.text = model.expert.eName;
    _date.text = @"2016-4-12";
    _content.text = model.eaAppraise;
}

@end
